<?php

	echo "<table style=\"width: 100%;\">\n";
	$paql = "SELECT `id`, `icone`, `poste`, `places` FROM `".TBL_RECRUTEMENTS."` WHERE activer = 'oui'";
	$req = mysql_query($paql);
	$nb = mysql_num_rows($req);
	$i = 1;
	while(list($id, $icone, $poste, $places) = mysql_fetch_array($req))
	{
		if ($i < $nb) {$border = "border-bottom: 1px solid white;";} else {$border = "";}
		echo "<tr style=\"".$border."\">
		<td style=\"padding: 5px; width: 24px;\"><img src=\"".RECRUTEMENTS.$icone."\" style=\"width: 24px; height: 24px;\"></td>
		<td style=\"padding: 5px;\"><a href=\"index.php?do=recrutements#".$poste."\">".$poste."</a></td>
		<td style=\"padding: 5px; width: 24px; text-align: center;\">".$places."</td>
		</tr>\n";
		$i++;
	}
	echo "</table>\n";
	
?>